<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$strHostName = trim($_data["HostName"]);
$arrHost = getVirtualHostByHostName($strHostName);
if($arrHost === false){
	$strMsg = $GLOBALS["errormessage"].$GLOBALS["errorhidden"];
	$strResult = "Error";

}elseif(sizeof($arrHost) > 0){
	$strResult = "isUsed";

}else{
	$strResult = "NotUse";
}

/****************************/
header("Content-Type: text/xml");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?".">\n";
print "<HostName>\n";

print "\t<Result>".$strResult."</Result>\n";
print "\t<Message>".$strMsg."</Message>\n";

print "</HostName>";
?>